#ifndef tube_body_h
#define tube_body_h

#include "StaticObject.h"

#define tubeBodyWIDTH 66
#define tubeBodyHEIGHT 47

class TubeBody : public StaticObject
{
public:
	TubeBody(int id, D3DXVECTOR2 position, int MovingWidth): StaticObject(id, position, MovingWidth)
	{
		_w = tubeBodyWIDTH;
		_h = tubeBodyHEIGHT;
		_type = TubeBodyType;
		_movingWidth = MovingWidth;
	}
	~TubeBody(){}
	void Update();

	void LoadResources(LPD3DXSPRITE SpriteHandler, Texture *texture)
	{
		_sprite = new Sprite(SpriteHandler, texture, tubeBodyWIDTH, tubeBodyHEIGHT, 1, 0);
	}
	void RenderFrame(LPDIRECT3DSURFACE9 BackBuffer, ViewPort *viewport)
	{
		_sprite -> Render(BackBuffer, (int)_position.x, (int)_position.y, 255, 1, 1, viewport);
	}
private:
	Sprite *_sprite;

};
#endif